﻿@model FilmBookingTicket.Models.Category

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

  <table class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
      <tr><td>  @Html.HiddenFor(model => model.CategoryId)

        <div >
            @Html.LabelFor(model => model.CategoryName)
        </div></td>
          <td>       <div class="input-control text">
            @Html.EditorFor(model => model.CategoryName)
            @Html.ValidationMessageFor(model => model.CategoryName)
        </div></td>
      </tr>
      <tr><td colspan="2">  <input type="submit" value="Save" /></td></tr>
      <tr><td colspan="2"><div>
    @Html.ActionLink("Back to List", "Index")
</div></td></tr>
  </table>
}



